package com.bjpowernode.beans;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Stu {
    @Min(value = 1,message = "最小值是1")
    @Max(value = 1000,message = "最大值是1000")
    int id;
    @NotNull(message = "不能为null")
    @NotEmpty(message = "不能为空字符串")
    String name;
    @Min(value = 0,message = "最小值是0")
    @Max(value = 100,message = "最大值是100")
    float score;
}
